package com.study.model.mdao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONObject;

@Mapper
public interface RepairGoodsMapper {

	/**
	 * 添加一条配件单
	 * @param repId
	 * @param goodId
	 * @param name
	 * @param price
	 * @param number
	 * @param goodTotal
	 * @return
	 */
	int addPeiJian(@Param("repId")String repId, @Param("goodId")String goodId,
			@Param("name")String name, @Param("price")String price,@Param("number") String number, @Param("goodTotal")String goodTotal);
	
	/**
	 * 根据维修id查询维修配件
	 * @param id
	 * @return
	 */
	List<JSONObject> getPeiJianCart(String id);

}
